<?php


/**
 *
 * @author Nguyen
 *        
 */
class Auth {
	
	/**
	 */
	function __construct() {
	}
	public static function getInstance(){
		return isset($_SESSION[Config::AUTH_SESSION_NAME]) ? $_SESSION[Config::AUTH_SESSION_NAME] : null; 
	}
	public static function setInstance($logininfo){
		$_SESSION[Config::AUTH_SESSION_NAME] = $logininfo;
	}
	public static function clearInstance(){
		unset($_SESSION[Config::AUTH_SESSION_NAME]);
	}
}

?>